package org.darkforest.model;

import java.io.Serializable;

/**
 * 令牌
 *
 * @auth bingo
 * @create 2017-09-25-17:05
 */
public class Token implements Serializable {

    //用户id
    private Integer memberId;

    //随机生成的uuid
    private String token;

    public Token(){}

    public Token(Integer memberId) {
        this.memberId = memberId;
    }

    public Token(String token) {
        this.token = token;
    }

    public Token(Integer memberId, String token) {
        this.memberId = memberId;
        this.token = token;
    }

    public long getMemberId() {
        return memberId;
    }

    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }
}
